import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Register from '@/views/Register/Register1'
import Reportview from '@/views/Reportview/Reportview'
import Reportview2 from '@/views/Reportview/Reportview2'
import Login from '@/views/Login/index'
import RoleSetting from '@/views/Settings/Role/index'
// import ButtonPermission from '@/views/Settings/Role/ButtonPermission'
import MenuPermission from '@/views/Settings/Role/MenuPermission'
import DeptPermission from '@/views/Settings/Role/DeptPermission'
import UserSetting from '@/views/Settings/User/index'
import DeptSetting from '@/views/Directory/BaseDept'
import EqpTypeSetting from '@/views/Directory/BaseEqpType'
import PartSetting from '@/views/Directory/BasePart'
import EquipSetting from '@/views/Directory/BaseEquip'
import TemplateSetting from '@/views/Directory/BaseTemplate'
import ReportAssign from '@/views/ReportAssign/index'
import FeeItemSetting from '@/views/Directory/BaseFeeItem'
import FeeItemEquSetting from '@/views/Directory/BaseFeeItemEqu'
import PartGroupSetting from '@/views/Directory/BasePartGroup'
import FeeTypeSetting from '@/views/Directory/BaseFeetype'
import DrawPicture from '@/views/DrawPicture/index'
import SearchInfo from '@/views/SearchInfo/index'
import PositiveRate from '@/views/Stat/StatRTPositiveRate'//科室阳性率统计
import Archive from '@/views/Archive/index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/Register',
      name: 'Register',
      component: Register
    },
    {
      path: '/Reportview',
      name: 'Reportview',
      component: Reportview
    },
    {
      path: '/Reportview2',
      name: 'Reportview2',
      component: Reportview2
    },
    {
      path: '/Settings/Role/index',
      name: 'RoleSetting',
      component: RoleSetting,
    },
    {
      path: '/Settings/Role/permissionsMenu',
      name: 'MenuPermission',
      component: MenuPermission,
    },
    {
      path: '/Settings/Role/permissionsDept',
      name: 'DeptPermission',
      component: DeptPermission,
    },
    {
      path: '/Settings/User/index',
      name: 'UserSetting',
      component: UserSetting,
    },
    {
      path: '/Directory/BaseDept',
      name: 'DeptSetting',
      component: DeptSetting,
    },
    {
      path: '/Directory/BaseEqpType',
      name: 'EqpTypeSetting',
      component: EqpTypeSetting,
    },
    {
      path: '/Directory/BasePart',
      name: 'PartSetting',
      component: PartSetting,
    },
    {
      path: '/Directory/BaseEquip',
      name: 'EquipSetting',
      component: EquipSetting,
    },
    {
      path: '/Directory/BaseTemplate',
      name: 'TemplateSetting',
      component: TemplateSetting,
    },
    {
      path: '/ReportAssign/index',
      name: 'ReportAssign',
      component: ReportAssign,
    },
    {
      path: '/Directory/BaseFeeItem',
      name: 'FeeItemSetting',
      component: FeeItemSetting,
    },
    {
      path: '/Directory/BaseFeeItemEqu',
      name: 'FeeItemEquSetting',
      component: FeeItemEquSetting,
    },
    {
      path: '/Directory/BasePartGroup',
      name: 'PartGroupSetting',
      component: PartGroupSetting,
    },
    {
      path: '/Directory/BaseFeetype',
      name: 'FeeTypeSetting',
      component: FeeTypeSetting,
    },
    {
      path: '/DrawPicture/index',
      name: 'DrawPicture',
      component: DrawPicture,
    },
    {
      path: '/SearchInfo/index',
      name: 'SearchInfo',
      component: SearchInfo,
    },
    {
      path: '/Stat/PositiveRate',
      name: 'PositiveRate',
      component: PositiveRate,
    },
    {
      path: '/Archive',
      name: 'Archive',
      component: Archive,
    }
  ]
})
